package org.jsola.hr.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.vo.BaseVO;

import java.util.Date;
import java.util.List;

import static org.jsola.core.example.BaseExample.E_GMT_CREATE;
import static org.jsola.core.example.BaseExample.E_GMT_MODIFIED;
import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.N_GMT_CREATE;
import static org.jsola.core.example.BaseExample.N_GMT_MODIFIED;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.SalaryPlanExample.*;
import static org.jsola.hr.example.SalaryPlanExample.E_BEFORE_TAX;
import static org.jsola.hr.example.SalaryPlanExample.E_COMPANY_ID;
import static org.jsola.hr.example.SalaryPlanExample.E_ENABLE;
import static org.jsola.hr.example.SalaryPlanExample.E_NAME;
import static org.jsola.hr.example.SalaryPlanExample.E_NEXT_MONTH_CLEAR;
import static org.jsola.hr.example.SalaryPlanExample.E_REMARK;
import static org.jsola.hr.example.SalaryPlanExample.E_SYSTEM_PROPERTY;
import static org.jsola.hr.example.SalaryPlanExample.E_TYPE;
import static org.jsola.hr.example.SalaryPlanExample.N_BEFORE_TAX;
import static org.jsola.hr.example.SalaryPlanExample.N_COMPANY_ID;
import static org.jsola.hr.example.SalaryPlanExample.N_ENABLE;
import static org.jsola.hr.example.SalaryPlanExample.N_NAME;
import static org.jsola.hr.example.SalaryPlanExample.N_NEXT_MONTH_CLEAR;
import static org.jsola.hr.example.SalaryPlanExample.N_REMARK;
import static org.jsola.hr.example.SalaryPlanExample.N_SYSTEM_PROPERTY;
import static org.jsola.hr.example.SalaryPlanExample.N_TYPE;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【工资方案】详情展示对象")
@Data
public class SalaryPlanVO extends BaseVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID)
    private String id;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    private String name;

    @ApiModelProperty(notes = N_TYPE, example = E_TYPE)
    private Integer type;

    @ApiModelProperty(notes = N_BEFORE_TAX, example = E_BEFORE_TAX)
    private Boolean beforeTax;

    @ApiModelProperty(notes = N_NEXT_MONTH_CLEAR, example = E_NEXT_MONTH_CLEAR)
    private Boolean nextMonthClear;

    @ApiModelProperty(notes = N_SYSTEM_PROPERTY, example = E_SYSTEM_PROPERTY)
    private Boolean systemProperty;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    private String remark;

    @ApiModelProperty(notes = N_ENABLE, example = E_ENABLE)
    private Boolean enable;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    private String companyId;

    @ApiModelProperty(notes = N_GMT_CREATE, example = E_GMT_CREATE)
    private Date gmtCreate;

    @ApiModelProperty(notes = N_GMT_MODIFIED, example = E_GMT_MODIFIED)
    private Date gmtModified;

    @ApiModelProperty(notes = N_FORMULA, example = E_FORMULA)
    private List<SalaryPlanFormulaVO> planFormulaVOList;
    /**
     * 计算工资时使用
     */
    private  Integer salaryAmount;
}

